package cn.edu.xmu.oomall.aftersales.microservice;

import cn.edu.xmu.oomall.aftersales.microservice.vo.CustomerRetVo;
import cn.edu.xmu.oomall.core.util.ReturnObject;
import cn.edu.xmu.privilegegateway.annotation.aop.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "customer-service")
public interface CustomerService {

    @GetMapping("/self")
    ReturnObject<CustomerRetVo> getCustomerInfo(@RequestParam @LoginUser Long userid);
}
